<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘首页</title>
    <link rel="stylesheet" href="assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/base.css">
    <script src="assets/zepto/zepto.min.js"></script>
    <script src="assets/mui/js/mui.min.js"></script>
    <script src="js/public.js"></script>
</head>z
<body>
    <!-- 头部 -->
<header class="mui-bar mui-bar-nav my-header">
    <h1 id="title" class="mui-title title">乐淘首页</h1>
</header>

<div class="mui-content">
   <!-- 轮播图 -->
    <div class="mui-slider">
        <div class="mui-slider-group">
            <div class="mui-slider-item">
                <a href="#">
                    <img src="images/banner1.png" />
                </a>
            </div>
            <div class="mui-slider-item">
                <a href="#">
                <img src="images/banner2.png" />
                </a>
            </div>
            <div class="mui-slider-item">
                <a href="#">
                <img src="images/banner3.png" />
                </a>
            </div>
            <div class="mui-slider-item">
                <a href="#">
                <img src="images/banner4.png" />
                </a>
            </div>

            <div class="mui-slider-item">
                <a href="#">
                    <img src="images/banner5.png" />
                </a>
            </div>

            <div class="mui-slider-item">
                <a href="#">
                    <img src="images/banner6.png" />
                </a>
            </div>

            <div class="mui-slider-item">
                <a href="#">
                    <img src="images/banner7.png" />
                </a>
            </div>

            <div class="mui-slider-item">
                <a href="#">
                    <img src="images/banner8.png" />
                </a>
            </div>

            <div class="mui-slider-item">
                <a href="#">
                    <img src="images/banner9.png" />
                </a>
            </div>

           
        </div>
    </div>
    <!-- 轮播图结束 -->

    <!-- 导航 -->

    <!-- 导航结束 -->
</div>
<!-- 尾部 -->
<nav class="mui-bar mui-bar-tab">
    <a id="defaultTab" class="mui-tab-item mui-active" href="index.html">
        <span class="mui-icon mui-icon-home"></span>
        <span class="mui-tab-label">首页</span>
    </a>
    <a class="mui-tab-item" href="search.html">
        <span class="mui-icon mui-icon-email">
            <span class="mui-badge">9</span>
        </span>
        <span class="mui-tab-label">消息</span>
    </a>
    <a class="mui-tab-item" href="tab-webview-subpage-contact.html">
        <span class="mui-icon mui-icon-contact"></span>
        <span class="mui-tab-label">通讯录</span>
    </a>
    <a class="mui-tab-item" href="user.html">
        <span class="mui-icon mui-icon-gear"></span>
        <span class="mui-tab-label">设置</span>
    </a>
</nav>
</body>
</html>

<script>
    //获得slider插件对象
        var gallery = mui('.mui-slider');
        gallery.slider({
            interval: 1000//自动轮播周期，若为0则不自动播放，默认为0；
        });


</script>